package com.JJTZ.saleannounce;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ListView ls = (ListView)findViewById(R.id.listView1);
        ls.setAdapter(new ListViewAdapter(this));
        
//        Button okButton = (Button) findViewById(R.id.btn_test);
//        okButton.setOnClickListener(new View.OnClickListener() {
//    public void onClick(View view) {
//    	Log.d("DemoAppActivity", "onCreate()...");
//    }
//});
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
